package com.lucifer.router;

import com.lucifer.router.Processor.CirclePrinterProcessor;
import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;

/**
 * Created by tangdaoyuan on 2017/1/12.
 */
@Component
public class TimerRouter extends RouteBuilder {
    @Override
    public void configure() throws Exception {
        from("timer://cirClePrinter?fixedRate=true&period=60000")
                .bean(CirclePrinterProcessor.class)
                .autoStartup(true);
    }
}
